<link rel="stylesheet" href="{{ admin_asset("assets/jstree/themes/proton/style.min.css") }}">
<div id="{{ $id }}" class="jstree-wrapper" style="border:0;padding:5px 0">
    <div class="da-tree"></div>
</div>
<script src="{{ admin_asset ("assets/jstree/jstree.min.js") }}"></script>
<script>
    $(function () {
        var opts = {!! json_encode($options) !!},tree = $('#{{$id}}').find('.da-tree');
        opts.core.data = {!! json_encode($nodes) !!};
        tree.on('loaded.jstree', function(){
            tree.jstree().open_all();
        }).jstree(opts);
    });
</script>
